<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" buffer="128kb"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我要提问</title>
<link href="${ctx}/css/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	<!--
		.user_td1{
		line-height:30px;border-bottom:1px dashed #ddd;border-top:1px solid #efefef;}
		.user_tdx{
		line-height:30px;border-bottom:1px dashed #ddd;
		}
	-->
	</style>
        <script language="JavaScript" src="${ctx}/js/jquery.js"></script>
		<script language="JavaScript" src="${ctx}/js/filter.js"></script>
		<script language="JavaScript" src="${ctx}/js/json2.js"></script>
<script type="text/javascript">
function gotoPage(pageOffset, pageSize) {
	var form = document.getElementsByTagName("form")[1];
	form.elements["pager.offset"].value = pageOffset;
	form.elements["pageSize"].value = pageSize;
	form.submit();
}
function check() {
	 var value1 = document.getElementById("value1").value;
	 var title = document.getElementById("title").value;
	 var content = document.getElementById("content").value;
	 if(value1==null || value1==""){
	 	document.getElementById("value1").focus();
	 	alert("请输入您的用户名!");
	 	return ;
	 }else{
	 	if(value1.length>60){
	 		alert("用户名长度不可超过60个字符！");
	 		return false;
	 	}
	 }
	 if(title==null || title==""){
	 	document.getElementById("title").focus();
	 	alert("请输入您的标题!");
	 	return ;
	 }else{
	 	if(title.length>60){
	 		alert("标题长度不得超过60个字符!");
	 		return false;
	 	}
	 }
	  if(content==null || content==""){
	 	document.getElementById("content").focus();
	 	alert("请输入您的提问内容!");
	 	return ;
	 }else{
	 	if(content.length>255){
	 		alert("内容的长度不得超过255个字符!");
	 		return false;
	 	}
	 }
	 document.getElementsByTagName('form')[2].submit();
}
</script>
</head>
<body>
 
<div class="bg">
		  <div class="bg_inside">
		<div class="head">
			<c:import url="/pages/safeai/jsp/shop/header.jsp"></c:import>
		</div>
<c:import url="/front/userinfo.do?method=myRayi"></c:import>
 
<html:form action="/front/usermsg" method="post">
<input type="hidden" name="method" value="quest">
<div class="user_order_content">
<div  class="user_order_content_top"><img src="../images/user_order_content_top.jpg" /></div>
<div class="user_order_content_center"><ul>
<li style=" background-image:url(../images/title_letter_icon.jpg); background-position:left center; background-repeat:no-repeat;padding:5px 0px 0px 15px;margin-bottom:5px;line-height:15px;color:#5a3e2e">我要提问</li>
<logic:empty name="UsermsgRange" property="records">
<li>您目前还没有提问记录!</li>
</logic:empty>
<logic:notEmpty name="UsermsgRange" property="records">

<li style="color:#A6957C; >
<table width="670px" border="0" cellpadding="0" cellspacing="0">
		<tr >
		<table width="100%"  border="0" cellpadding="0" cellspacing="0"  style="color:#A6957C; background-color:#efefef">
		<tr>
<td style="width:25%;" align="center"  >用户名</td>
<td style="width:25%;" align="center"  >提问类型</td>
<td style="width:50%;" align="center"  >标题</td>
</tr></table></tr>

<logic:iterate id="usermsg" name="UsermsgRange" property="records">
<tr>
<table width="100%"  border="0" cellpadding="0" cellspacing="0"  style="color:#A6957C;background-color:#f6f6f6" ><tr>
<td style="width:25%;" align="center" class="user_td1" >${usermsg.value1}</td>
<td style="width:25%;" align="center" class="user_td1" >${usermsg.value2}</td>
<td style="width:50%;" align="center" class="user_td1" >${usermsg.title}</td>
</tr></table></tr>
<tr><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr><td style="width:25%" align="center" class="user_tdx">提问内容:</td><td style="width:75%" align="left" class="user_tdx">${usermsg.content}</td></tr></table></tr>
<tr><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  <tr><td style="width:25%" align="center">回复内容:</td><td style="width:75%" align="left">${usermsg.reply}</td></tr></table></tr>

</logic:iterate>
</table>
</li>
<li style="float:right;text-align:right;padding-right:30px;margin-top:20px;width:400px"> <%@ include file="/user/pageFront.jsp"%></li>
</logic:notEmpty>
</html:form>

<html:form action="/front/usermsg" method="post">
<input type="hidden" name="method" value="addQuest">
<li style="margin-top:20px">提交问题</li>
<li >用 户 名 <label>
  <input type="text" id="value1" name="usermsg.value1" /style="width:100px">
  </label></li>
<li>提问类型 
<label>
  <select name="usermsg.value2">
	<option value="物流问题">物流问题</option>
	<option value="支付问题">支付问题</option>
	<option value="售后问题">售后问题</option>
	<option value="发票问题">发票问题</option>
	<option value="其它">其它</option> 
  </select>
 </label>
 </li>
  <li>标　　题 <label><input type="text" id="title" name="usermsg.title" />
  </label> <font class="orange">*</font></li>
<li style="overflow:hidden"><label>　　　　 <textarea id="content" name="usermsg.content"></textarea>
  </label> <font class="orange">*</font></li>
  <li style="text-align:center;"><a href="#" onclick="check();" class="reg_button ">提交问题</a></li>

</ul> 			   
</div>
<div  class="user_order_content_bottom"><img src="../images/user_order_content_bottom.jpg" /></div>
</div>



</div>
</html:form>
<%@ include file="/user/commonProblem.jsp"%>
<div class="bottom">
	<%@ include file="/pages/safeai/jsp/shop/bottom.jsp"%>	
	<div class="clearAll"></div>
</div>

</body>
</html>
  